package com.example.cslp.service;


import com.example.cslp.pojo.entity.Course;
import com.example.cslp.pojo.entity.Record;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface RecordService {
    //选课增加记录
//    ResponseEntity<Boolean> addRecord(Record record);
    Boolean addRecord(Record record);

    ResponseEntity<Boolean> delRecord(String u_id,String c_id);

    //根据用户获取选课信息
    List<Course> getRecordByUser(String name);

    //获取用户没有选的课
    List<Course> getUnRecordByUser(String name);
    //支付
    Boolean payPoints(Record record);
}
